﻿using System;
namespace DealPoker
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            //1、创建牌
            PokerManager.Instance.CreatePoker();
            //2、依次发牌
            PokerManager.Instance.SendPokerToPlayer();
            //3、打印扑克信息
            PokerManager.Instance.PrintPokerOfAllPlayer();
            //4、按照花色排序玩家1的扑克（黑、红、梅、方）
            //            PokerManager.Instance.OrderPokerByColor (PokerManager.Instance.player01);
            PokerManager.Instance.OrderPokerByNumber(PokerManager.Instance.player01);
            Console.WriteLine("玩家1按照花色排序后为：");
            PokerManager.Instance.PrintSomeonePoker(PokerManager.Instance.player01);

            PokerManager.Instance.OrderPokerByNumber(PokerManager.Instance.player02);
            Console.WriteLine("玩家2按照花色排序后为：");
            PokerManager.Instance.PrintSomeonePoker(PokerManager.Instance.player02);

            PokerManager.Instance.OrderPokerByNumber(PokerManager.Instance.player03);
            Console.WriteLine("玩家3按照花色排序后为：");
            PokerManager.Instance.PrintSomeonePoker(PokerManager.Instance.player03);

            PokerManager.Instance.OrderPokerByNumber(PokerManager.Instance.player04);
            Console.WriteLine("玩家4按照花色排序后为：");
            PokerManager.Instance.PrintSomeonePoker(PokerManager.Instance.player04);

            Console.ReadKey();
        }
    }
}
